Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent jar handling for Local and Remote UDFs #849

Merged

Conversation

nandorsoma
Copy link
Contributor

@nandorsoma nandorsoma commented Oct 2, 2024

This pull request introduces consistent handling of jar files for Local and Remote User-Defined Functions (UDFs) by updating the ResourceResolver interface and its implementations. This ensures paths are correctly resolved and utilized throughout the codebase.

Fixes #848

@nandorsoma nandorsoma linked an issue Oct 2, 2024 that may be closed by this pull request
@@ -89,8 +89,24 @@ private Void processJarEntry(JarEntry entry, JarFile file,
processorContext.addLibrary(path);
}

copyFileWithStructure(path, processorContext.getBuildDir());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

processorContext.addDependency(path); to copy files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow. cool!

@@ -51,4 +47,13 @@ public Optional<Path> resolveFile(NamePath namePath) {
}
return Optional.of(path);
}

@Override
public Optional<Path> resolve(Path path) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

resolve(Path relativePath) ?

Copy link
Contributor

@henneberger henneberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@nandorsoma nandorsoma merged commit 3f6c623 into main Oct 7, 2024
1 check passed
@nandorsoma nandorsoma deleted the 848-consistent-jar-handling-for-local-and-remote-udfs branch October 7, 2024 07:13
henneberger added a commit that referenced this pull request Oct 15, 2024
This reverts commit 3f6c623.

Reverting due to a merge bug which causes it to fail in the build server
nandorsoma added a commit that referenced this pull request Oct 22, 2024
* Consistent jar handling for Local and Remote UDFs

* addressing review comments

(cherry picked from commit 3f6c623)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consistent jar handling for Local and Remote UDFs
2 participants